// http content-type 枚举
export const enumContentType = {
  json: 'application/json;charset=utf-8',
  formUrlencoded: 'application/x-www-form-urlencoded;charset=UTF-8',
  formData: 'multipart/form-data',
}

// 上传接受的文件类型
export const enumUploadType = {
  image: 'image/png,image/jpg,image/jpeg',
}

// 直播类型文字对应的id
export const enumLiveTypeTextToId = {
  其他: 0,
  足球: 1,
  篮球: 2,
}

// 足球篮球
export const enumBallType = {
  football: '1',
  basketball: '2',
}

// 关联比赛对应的typeid
export const enumMatchType = {
  football: 1,
  basketball: 2,
  other: 0,
}

// 足球比赛状态枚举
export const enumFootballMatchStatus = {
  0: '比赛异常', // 说明：暂未判断具体原因的异常比赛，可能但不限于：腰斩、取消等等，建议隐藏处理
  1: '未开',
  2: '上半场',
  3: '中场',
  4: '下半场',
  5: '加时赛',
  // 6:加时赛(弃用)
  7: '点球决战',
  8: '完赛',
  9: '推迟',
  10: '中断',
  11: '腰斩',
  12: '取消',
  13: '待定',
}

// 篮球比赛状态枚举
export const enumBasketballMatchStatus = {
  0: '比赛异常', // 说明：暂未判断具体原因的异常比赛，可能但不限于：腰斩、取消等等，建议隐藏处理
  1: '未开',
  2: '第一节',
  3: '第一节完',
  4: '第二节',
  5: '第二节完',
  6: '第三节',
  7: '第三节完',
  8: '第四节',
  9: '加时',
  10: '完赛',
  11: '中断',
  12: '取消',
  13: '延期',
  14: '腰斩',
  15: '待定',
}

// 消息类型
export const enumMessageType = {
  0: '系统消息',
  1: '等级升级',
  2: '意见反馈',
  3: '主播认证',
  4: '投诉反馈',
}

export const enumTimeDiff = {
  '-1': '昨天',
  0: '今天',
  1: '明天',
  2: '后天',
}

export const enumWeek = {
  0: '周日',
  1: '周一',
  2: '周二',
  3: '周三',
  4: '周四',
  5: '周五',
  6: '周六',
}

// 赛程类型 枚举
export const enumScheduleType = {
  all: 1,
  progress: 5,
  schedule: 2,
  results: 3,
  follow: -1,
}

export const enumLivePreStatus = {
  2: '未开赛',
  5: '进行中',
  3: '已结束',
}

// 足球球员位置枚举
export const enumFootballPosition = {
  F: '前锋',
  M: '中场',
  D: '后卫',
  G: '守门员',
}

//首页导航数据 索引+1就是id
export const HomeNavEnum = ['世界杯', '英超', '西甲', '法甲', '德甲', '意甲', 'NBA', 'CBA', '欧冠杯', '欧联杯', '中超', 'NBL', 'WNBA']

export const NavList = {
  f: [
    { en: "shijiebei", type: 1, name: '世界杯直播', id: 1 },
    { en: "yingchao", type: 1, name: '英超直播', id: 82 },
    { en: "xijia", type: 1, name: '西甲直播', id: 120 },
    { en: "fajia", type: 1, name: '法甲直播', id: 142 },
    { en: "dejia", type: 1, name: '德甲直播', id: 129 },
    { en: "yijia", type: 1, name: '意甲直播', id: 108 },
    { en: "zhongchao", type: 1, name: '中超直播', id: 542 },
    { en: "ouguan", type: 1, name: '欧冠杯直播', id: 46 },
    { en: "oulian", type: 1, name: '欧联杯直播', id: 47 },
  ],
  b: [
    { en: "NBA", type: 2, name: 'NBA直播', id: 1, },
    { en: "CBA", type: 2, name: 'CBA直播', id: 3, },
    { en: "NBL", type: 2, name: 'NBL直播', id: 4 },
    { en: "WNBA", type: 2, name: 'WNBA直播', id: 2 },
  ],
  a: {
    type: 0,
    name: '全部',
    id: '',
  },
}

export const videoBackNavList = {
  f: [
    {
      typeGeneral: 1,
      typeName: '足球',
      en: "football",
      id: '',
      sid: 18
    },
    {
      id: 18,
      typeGeneral: 1,
      typeName: '世界杯',
      en: "shijiebei"
    },
    {
      id: 4,
      typeGeneral: 1,
      typeName: '英超',
      en: "yingchao"
    },
    {
      id: 8,
      typeGeneral: 1,
      typeName: '西甲',
      en: "xijia"
    },
    {
      id: 9,
      typeGeneral: 1,
      typeName: '法甲',
      en: "fajia"
    },
    {
      id: 7,
      typeGeneral: 1,
      typeName: '德甲',
      en: "dejia"
    },
    {
      id: 6,
      typeGeneral: 1,
      typeName: '意甲',
      en: "yijia"
    },
    {
      id: 16,
      typeGeneral: 1,
      typeName: '中超',
      en: "zhongchao"
    },
    {
      id: 11,
      typeGeneral: 1,
      typeName: '欧冠',
      en: "ouguan"
    },
  ],
  b: [
    {
      id: '',
      typeGeneral: 2,
      typeName: '篮球',
      en: "basketball",
      sid: 3
    },
    {
      id: 3,
      typeGeneral: 2,
      typeName: '篮球',
      en: "lanqiu"
    },
    {
      id: 5,
      typeGeneral: 2,
      typeName: 'NBA',
      en: "NBA",
    },
  ],
}
